﻿using System;
using System.Collections.Generic;
using Color = System.Drawing.Color;
using SwinGame;

namespace RandomShapeGenerator.src
{
    public class LineRenderer : IShapeRenderer
    {

        public void Draw(Shape s)
        {
            Graphics.DrawLine(
                s.Color, s.X, s.Y, s.X + s.Width, s.Y + s.Height
                );
        }

        public void Highlight(Shape s)
        {
            Graphics.DrawEllipse(
                Color.Yellow, s.X, s.Y, 2, 2
                );

            Graphics.DrawEllipse(
                 Color.Yellow, s.X + s.Width, s.Y + s.Height, 2, 2
                );
        }

    }
}
